<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

	<h:form id="menubar">
		<p:menubar>
			<p:menuitem value="Đặt lịch" url="dang-ky.jsf" icon="ui-icon-star"
				rendered="#{loginBean.giaoVien}" />
			<p:menuitem value="Lịch sử đăng ký" url="lich-su-dang-ky.jsf"
				icon="ui-icon-search" rendered="#{loginBean.giaoVien}" />
			<p:menuitem value="Quản lý" url="quan-ly.jsf" icon="ui-icon-star"
				rendered="#{loginBean.quanLy}" />
			<p:menuitem value="Lịch sử đăng ký" url="quan-ly-lich-su.jsf"
				icon="ui-icon-search" rendered="#{loginBean.quanLy}" />
			<p:menuitem value="Thống kê" url="thong-ke.jsf"
				icon="ui-icon-note"/>
			<p:menuitem value="Quản lý phòng" url="quan-ly-phong.jsf"
				icon="ui-icon-person" rendered="#{loginBean.quanLy}" />
			<p:menuitem value="Đăng xuất" icon="ui-icon-extlink"
				actionListener="#{loginBean.logout}" ajax="false"/>
		</p:menubar>
		<p:growl id="growl" />
	</h:form>

</ui:composition>